<?php

class SendNewsletterForm extends CFormModel {

    public $group;
    public $subject;
    public $body;

    /**
     * Declares the validation rules.
     */
    public function rules() {
        return array(
            // name, email, subject and body are required
            array('group, subject, body', 'required'),
            array('body', 'length', 'min' => 10),
        );
    }

}